package cn.pojo;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * detail 实体类 Mon Dec 10 10:14:15 CST 2018 qiange
 */

public class Detail implements Serializable {
	private static final long serialVersionUID = 4208012357890707601L;
	private Long id;
	private Long sortId;
	private String title;
	private String detail;
	private String author;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createDate;
	private Integer replyCount;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setSortId(Long sortId) {
		this.sortId = sortId;
	}

	public Long getSortId() {
		return sortId;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getDetail() {
		return detail;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getAuthor() {
		return author;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setReplyCount(Integer replyCount) {
		this.replyCount = replyCount;
	}

	public Integer getReplyCount() {
		return replyCount;
	}

	@Override
	public String toString() {
		return "Detail [id=" + id + ", sortId=" + sortId + ", title=" + title + ", detail=" + detail + ", author="
				+ author + ", createDate=" + createDate + ", replyCount=" + replyCount + "]";
	}

}
